<template name="elements_img">
    {{preload}}
    <img src="{{TemplateVar.get 'src'}}" class="{{class}} {{#if TemplateVar.get 'loading'}}loading{{/if}}">
</template>